const {toCamel} = require('../../libs/tools')

module.exports = function({base, field: {name,primary,field}}){

    return {
        fieldName: field                        // 字段名称
        , propName: toCamel(field)              // 属性名称
        , dbType: 'bigint'                      // 数据库类型
        , length: 20
        , javaType: 'java.lang.Long'
        , autoIncrement: !!primary
        , notNull: !!primary
        , label: name
    }
}